package NowCoderHuaWei;

import java.util.*;
public class Test12{
    public static void main(String[] args)
        {
        Scanner in=new Scanner(System.in);
        while(in.hasNext())
            {
            StringBuffer sb=new StringBuffer(in.nextLine());
            System.out.println(sb.reverse().toString());
        }
        in.close();
    }
}